@namespace: vben;
@primary-color: #0084f4;
@text-color-secondary: #8b949e;
@screen-sm: 576px;
@screen-md: 768px;
@screen-lg: 992px;
@screen-xl: 1200px;
@prefix-cls: ~'@{namespace}-login';
@logo-prefix-cls: ~'@{namespace}-app-logo';
@countdown-prefix-cls: ~'@{namespace}-countdown-input';
@dark-bg: #293146;
@white: #fff;

.login-box-bg {
  width: 470px;
}

html[data-theme='dark'] {
  .@{prefix-cls} {
    background-color: @dark-bg;
    &::before {
      background-image: url(../../assets/svg/login-bg-dark.svg);
    }
    .ant-input,
    .ant-input-password {
      background-color: #232a3b;
    }
    .ant-btn:not(.ant-btn-link):not(.ant-btn-primary) {
      border: 1px solid #4a5569;
    }
    &-form {
      background: transparent !important;
    }
    .app-iconify {
      color: #fff;
    }
  }
}

.@{prefix-cls} {
  min-height: 100%;
  overflow: hidden;
  @media (max-width: @screen-xl) {
    background-color: #293146;

    .@{prefix-cls}-form {
      background-color: #fff;
    }
  }
  &::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin-left: -48%;
    background-image: url(../../assets/svg/login-bg.svg);
    background-position: 100%;
    background-repeat: no-repeat;
    background-size: auto 100%;
    content: '';
    @media (max-width: @screen-xl) {
      display: none;
    }
  }
  .@{logo-prefix-cls} {
    position: absolute;
    top: 12px;
    height: 30px;
    &__title {
      font-size: 16px;
      color: #fff;
    }
    img {
      width: 32px;
    }
  }
  .container {
    .@{logo-prefix-cls} {
      display: flex;
      width: 60%;
      height: 80px;
      &__title {
        font-size: 24px;
        color: #fff;
      }
      img {
        width: 48px;
      }
    }
  }

  &-sign-in-way {
    .anticon {
      font-size: 22px;
      color: #888;
      cursor: pointer;
      &:hover {
        color: @primary-color;
      }
    }
  }
  input:not([type='checkbox']) {
    min-width: 405px;
    @media (max-width: @screen-xl) {
      min-width: 320px;
    }
    @media (max-width: @screen-lg) {
      min-width: 260px;
    }
    @media (max-width: @screen-md) {
      min-width: 240px;
    }
    @media (max-width: @screen-sm) {
      min-width: 160px;
    }
  }
  .@{countdown-prefix-cls} input {
    min-width: unset;
  }
  .ant-divider-inner-text {
    font-size: 12px;
    color: @text-color-secondary;
  }
}

@prefix-cls-app-logo: ~'@{namespace}-app-logo';

.@{prefix-cls-app-logo} {
  display: flex;
  align-items: center;
  padding-left: 13px;
  cursor: pointer;
  transition: all 0.2s ease;

  &.light {
    border-bottom: 1px solid #303030;
  }

  &.collapsed-show-title {
    padding-left: 20px;
  }

  &.light &__title {
    color: @primary-color;
  }

  &.dark &__title {
    color: @white;
  }

  &__title {
    font-size: 19px;
    font-weight: 700;
    transition: all 0.5s;
  }
}

 @prefix-cls-countdown-input: ~'@{namespace}-countdown-input';

.@{prefix-cls-countdown-input} {
  .ant-input-group-addon {
    padding-right: 0;
    background-color: transparent;
    border: none;

    button {
      font-size: 14px;
    }
  }
}